From 8e2365821d8520383d810589911ce7b4e6070af6 Mon Sep 17 00:00:00 2001 From: "awilliam@xenbuild.aw" Date: Wed, 5 Apr 2006 12:19:52 -0600 Subject: [PATCH] [IA64] print domain id and vcpu id when panic made show_regs() to print domain id and vcpu id. Signed-off-by: Isaku Yamahata --- xen/arch/ia64/linux-xen/process-linux-xen.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/xen/arch/ia64/linux-xen/process-linux-xen.c b/xen/arch/ia64/linux-xen/process-linux-xen.c index 22c56e56a2..228280f2b8 100644 --- a/xen/arch/ia64/linux-xen/process-linux-xen.c +++ b/xen/arch/ia64/linux-xen/process-linux-xen.c @@ -126,6 +126,13 @@ show_regs (struct pt_regs *regs) printk("psr : %016lx ifs : %016lx ip : [<%016lx>] %s\n", regs->cr_ipsr, regs->cr_ifs, ip, print_tainted()); #else + struct vcpu* vcpu = current; + if (vcpu != NULL) { + struct domain* d = vcpu->domain; + printk("d 0x%p domid %d\n", d, d->domain_id); + printk("vcpu 0x%p vcpu %d\n", + vcpu, vcpu->vcpu_id); + } printk("\nCPU %d\n", smp_processor_id()); printk("psr : %016lx ifs : %016lx ip : [<%016lx>]\n", regs->cr_ipsr, regs->cr_ifs, ip); -- 2.30.2